#pragma once
#include "afxwin.h"


// COrderDlg dialog

class CGridCtrl;
class COrderDlg : public CDialog
{
	DECLARE_DYNAMIC(COrderDlg)

public:
	COrderDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~COrderDlg();

// Dialog Data
	enum { IDD = IDD_ORDER_DLG };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedButton9();
	void addTableTitle();
private:
	CGridCtrl* m_timeTable;
	const CRect m_tableRect;
	virtual BOOL OnInitDialog();
	UINT_PTR m_timer;
public:
	CString m_nowDate;
	CString m_nowTime;
public:
	afx_msg void OnTimer(UINT_PTR nIDEvent);
	bool m_bFirstOrder;
	bool m_returnTrue;
	INT64 m_Serial;
	unsigned int nArea;
	unsigned int nDesktop;
protected:
	Order	m_orderData;
	bool	m_orderIsChange;

public:
	CButton m_changOrderBt;
public:
	CButton m_cashBt;
protected:
	void GenerateSerialNum();
	void fillTable();
public:
	CString m_sFoodId;
public:
	UINT m_nFoodCount;
public:
	bool m_bAlarm;
public:
	afx_msg void OnEnChangeFoodId();
public:
	CStatic m_oldCount;
public:
	CString m_editFoodName;
public:
	CString m_editFoodId;
public:
	CListBox m_moreSrcList;
public:
	afx_msg void OnBnClickedTransFrom();
public:
	CListBox m_moreList;
public:
	afx_msg void OnBnClickedDelete();
public:
	afx_msg void OnBnClickedSave();
public:
	afx_msg void OnBnClickedButton1();
public:
	afx_msg void OnBnClickedDel();
public:
	afx_msg void OnBnClickedOrder();
public:
	CButton m_orderBt;
public:
	afx_msg void OnBnClickedChangeOrder();
public:
	CString m_nowAreaName;
public:
	CString m_nowDeskName;
};
